<script type="text/javascript" src="/js/app/cost.js"></script>

<script type='text/javascript'>
    function addRow()
    {
        cost.store.add({});
    }
    
    
</script>

<div id="costList"></div>
<hr/>
<div>
    <input type='button' onclick='addRow();' value='Add row' />
</div>    